@import '@site/src/css/fonts';

[data-theme='dark'] .navbar {
  background-color: #12161b;
}

.navbar__title {
  @include t2b;
  font-weight: 700;
}

.navbar__link {
  margin-right: 20px;
  font-weight: 300;
}

.navbar__link--active {
  text-decoration: none;
  color: var(--ifm-navbar-link-color);
  font-weight: var(--ifm-font-weight-semibold);
}

.navbar__item {
  padding: 5px;
  font-weight: 300;
}

.navbar__brand {
  margin-right: 30px;
}

[data-theme='dark'] .navbar__item {
  padding: 5px;
  font-weight: 300;
}

/*===========*/

/* Restyle logo & hamburger button */

.navbar {
  height: 60px;

  &__items {
    &--right {
      position: relative;
    }
  }

  &__logo {
    height: 26px;
    margin: 0 10px 0 0;
  }

  &__toggle {
    width: 40px;
    height: 40px;
    background-color: var(--detox-color-a3);
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    position: absolute;
    margin-right: 0;
    top: 15px;
    right: 25px;
  }
}

@media (max-width: 996px) {
  .navbar__toggle {
    display: none;
  }
}


@media (max-width: 768px) {
  .navbar__toggle {
    display: inherit;
    position: absolute;
    margin: 0;
    top: 10px;
    right: 25px;
  }
}

/* Restyle search button */

.DocSearch-Button {
  font-family: inherit;
}

@media (max-width: 768px) {
  button.DocSearch-Button {
    background-color: var(--detox-color-a3);
    height: 40px;
    border-radius: 10px;
    padding: 0 10px;
  }

  .DocSearch-Search-Icon {
    opacity: 0.6;
  }
}
